home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 3.3 KB | 99 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Defines.k
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef DEFINES_K
- #define DEFINES_K
-
- //-------------------------------------------------------------------------------------
- // Uncomment the following four lines, and define them appropriately!!
- // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
- // to be 1. Otherwise define it to be 0.
- // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
- // 1 to enable the extensions manager. Otherwise, define it to be 0.
- // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
- // define it to be zero. Note that if your part is scriptable is must support
- // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
-
- #define FW_SUPPORTS_EMBEDDING 0
- #define FW_SUPPORTS_EXTENSIONS 0
- #define FW_SUPPORTS_SCRIPTING 0
-
- //-------------------------------------------------------------------------------------
- // Use the following flags to determine which view resources are supported.
- // By default this sample supports both MacApp and PowerPlant views but doesn't use
- // any ODF views
-
- #define FW_ODFRC_VIEWS 0
- #define FW_MACAPP_VIEWS 1
- #define FW_PPOB_VIEWS 1
-
- //-------------------------------------------------------------------------------------
- // Presentations
- #define kMainPresentation "ODF:Presentation:ViewTester"
- #define kDialogPresentation "ODF:Presentation:ViewTester:Dialog"
- #define kTestPresentation "ODF:Presentation:ViewTester:Test"
-
- //-------------------------------------------------------------------------------------
- // Menus
- #define kMenuBar 1024
-
- #define kFirstMacAppCommandID FW_kFirstUserCommandID + 100
- #define kFirstPPobCommandID FW_kFirstUserCommandID + 200
-
- #if FW_MACAPP_VIEWS
- #define cReloadMAViews kFirstMacAppCommandID
- #define cLoadNewMAViews kFirstMacAppCommandID + 1
- #define cLoadNewMAResFile kFirstMacAppCommandID + 2
- #endif
- #if FW_PPOB_VIEWS
- #define cReloadPPobViews kFirstPPobCommandID
- #define cLoadNewPPobViews kFirstPPobCommandID + 1
- #define cLoadNewPPobResFile kFirstPPobCommandID + 2
- #endif
-
- //-------------------------------------------------------------------------------------
- // Views
-
- #define kMainViewID -1
-
- #define kDialogID 2000
- #define kOKButtonID 1
- #define kCancelButtonID 2
- #define kMacAppEditID 3
- #define kPPobEditID 4
- #define kMacAppPopupID 5
- #define kPPobPopupID 6
-
- #define kPictureWidth 572
- #define kPictureHeight 498
-
- //-------------------------------------------------------------------------------------
- // Document Window
- #define kDocumentWindowID 1024
-
- //-------------------------------------------------------------------------------------
- // About
- #define kAbout 1024
-
- //-------------------------------------------------------------------------------------
- // Icons ID
-
- #define kDocumentIconID 1000
- #define kStationeryIconID 1001
- #define kEditorIconID 1002
- #define kViewAsIconID kDocumentIconID
- #define kAboutIconID kDocumentIconID
-
- //-------------------------------------------------------------------------------------
- // PartInfo
- #define kPartInfoID 1000
-
- #endif
-
-